<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<h1>函数</h1>
<body>
  <script>
    function fn1(){
      console.log('我是函数')
    }
//fn1()

const fn2=function(){
  console.log('我是匿名函数')
}
//fn2()

const fn3=()=>{
  console.log('我是箭头函数')
}
//fn3()

const fn4=(c)=>{
  console.log(c)
}
fn4(1)

const fn5=(a,b,...params)=>{
  console.log(params)
}
//fn5(1,2,3,4,5,6)
  </script>
</body>
</html>